using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class WaybillOutStationMap : EntityTypeConfiguration<WaybillOutStation>
	{
		public WaybillOutStationMap()
		{
			// Primary Key
			this.HasKey(t => t.WaybillOutID);

			// Properties
			// Table & Column Mappings
			this.ToTable("WaybillOutStation");
			this.Property(t => t.WaybillOutID).HasColumnName("WaybillOutID");
			this.Property(t => t.WaybillNO).HasColumnName("WaybillNO");
			this.Property(t => t.DeliverMan).HasColumnName("DeliverMan");
			this.Property(t => t.DeliverStation).HasColumnName("DeliverStation");
			this.Property(t => t.OutTime).HasColumnName("OutTime");
			this.Property(t => t.CreatBy).HasColumnName("CreatBy");
			this.Property(t => t.CreatStation).HasColumnName("CreatStation");
			this.Property(t => t.CreatTime).HasColumnName("CreatTime");
		}
	}
}

